//
//  ViewController.m
//  UI_05 10homework
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "LTView.h"
@interface ViewController ()
@property (nonatomic,retain) UIScrollView *scrle;

@end

@implementation ViewController

- (void)dealloc
{
   
    [_scrle release];
     [super dealloc];
}







- (void)viewDidLoad {
    
    [super viewDidLoad];
    [self creatView];
    
    
    
}

- (void)creatView{
    
       
    self.scrle = [[UIScrollView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:self.scrle];
    self.scrle.showsVerticalScrollIndicator = YES;
    self.scrle.contentSize = CGSizeMake(0, 200 * 6);
    self.scrle.contentOffset = CGPointMake(0, 0);
    
    
    LTView *viewOf1 = [LTView ltviewWithFrame:CGRectMake(20, 20, self.view.frame.size.width - 40, 200) title:@"艾玛 沃森" content:@"123456" name:@"1.jpg"];
 
    [self.scrle addSubview:viewOf1];

    
    LTView *viewOf2 = [LTView ltviewWithFrame:CGRectMake(20, 220, self.view.frame.size.width - 40, 200) title:@"布拉德皮特 安吉丽娜朱莉" content:@"123456" name:@"2.jpg"];
    
    [self.scrle addSubview:viewOf2];
   
    
    
    LTView *viewOf3 = [LTView ltviewWithFrame:CGRectMake(20, 420, self.view.frame.size.width - 40, 200) title:@"黄多多" content:@"123456" name:@"3.jpg"];
    
    [self.scrle addSubview:viewOf3];

    
    LTView *viewOf4 = [LTView ltviewWithFrame:CGRectMake(20, 620 ,self.view.frame.size.width - 40, 200) title:@"陈奕迅" content:@"123456" name:@"4.jpg"];
    
    [self.scrle addSubview:viewOf4];

    
    LTView *viewOf5 = [LTView ltviewWithFrame:CGRectMake(20, 820, self.view.frame.size.width - 40, 200) title:@"陈好" content:@"123456" name:@"5.jpg"];
    
    [self.scrle addSubview:viewOf5];

    
    LTView *viewOf6 = [LTView ltviewWithFrame:CGRectMake(20, 1020, self.view.frame.size.width - 40, 200) title:@"凯拉奈特莉" content:@"123456" name:@"6.jpg"];
    
    [self.scrle addSubview:viewOf6];
   
    
    
    [_scrle release];









}








@end
